package com.example.houtai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.houtai.entity.SysDept;
import com.example.houtai.mapper.SysDeptMapper;
import com.example.houtai.service.ISysDeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 部门管理 服务实现类
 * </p>
 *
 * @author xuchen
 * @since 2021-03-22
 */
@Service
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> implements ISysDeptService {
    @Resource
    private SysDeptMapper sysDeptMapper;

    @Override
    public List<SysDept> listVO() {

        return sysDeptMapper.listVO();
    }

    /**
     * 删除
     * @param id
     * @return
     */
    @Override
    public boolean delById(Integer id) {
        return sysDeptMapper.delById(id);
    }

}
